#pragma once

#include <npp.h>
#include "cudafthandle.h "

void ThrowIfPlanIsNotOfType(const CUDAFTPLANHANDLEInternal& plan, CUDAFTPLANHANDLETYPE type);
void ThrowIfCudaError(cudaError_t cr, const char* functionName);
void ThrowIfCuFFTError(cufftResult cr, const char* functionName);
void ThrowIfNppError(NppStatus status, const char* functionName);
void ThrowIfNull(void* vp, const char* functionName);